from torch.utils.tensorboard import SummaryWriter

writer = SummaryWriter("logs")

x = range(200)
for i in x:
    writer.add_scalar('y = 2x', i * 2, i)


writer.close()